package com.zbf.service;

import com.zbf.dao.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/9/9  14:10
 * 描述:
 */
@Component
public class TestQianTao2 {

    @Autowired
    private TestMapper testMapper;


    @Transactional(timeout = 1,propagation = Propagation.REQUIRES_NEW,rollbackFor = Exception.class)
    public void test3(){
        int i = testMapper.deleteById(5L);

    }



}
